<template>
	<view>
		<search-box @searchNow="searchNow" @searchItem="searchItem"></search-box>
	</view>
</template>

<script>
	import searchBox from "@/components/search-box.vue"
	export default {
		data() {
			return {

			}
		},
		components: {
			searchBox,
		},
		methods: {
			searchNow(val) {
				uni.navigateTo({
					url: '../list/list?search=' + val
				});
			},

			searchItem(val) {
				uni.navigateTo({
					url: '../list/list?search=' + val
				});
			}
		}
	}
</script>

<style>

</style>
